package Work;

import java.util.Objects;

public class Librarian {
	private String l_id;//图书管理员ID
	private String l_name;//图书管理员姓名
	private String l_number;//电话
	
	//全参构造方法
	public Librarian(String id, String name, String number){
		this.l_id = id;
		this.l_name = name;
		this.l_number = number;
	}
	
	public Librarian() {
		// TODO 自动生成的构造函数存根
	}

	//比较判断方法
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Librarian librian = (Librarian) o;
        return l_name.equals(librian.l_name);//返回管理员姓名
    }
    
    //toString
    @Override
    public String toString() {
        return "Librarian{" +
                "l_id=" + l_id +
                ", l_name='" + l_name + '\'' +
                ", l_number='" + l_number + '\'' +
                '}';
    }
    
    public String getID() {
    	return l_id;
    }
    
    public void setID(String id) {
    	this.l_id = id;
    }
    
    public String getName() {
    	return l_name;
    }
    
    public void setName(String name) {
        this.l_name = name;
    } 
    
    public String getNumber() {
    	return l_number;
    }
    
    public void setNumber(String number) {
    	this.l_number = number;
    }
}
